﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Layers.SecurityLayer.Models.LogOnModel
@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@Model._PageTitle.</h1>
                <h2>@Model._PageMessage.</h2>
                <p>
                </p>
            </hgroup>
        </div>
    </section>
}
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.ValidationSummary(true, Resources.View_LogOn_AuthenticationFailed_Message)
    @Html.HiddenFor(m => m.ReturnUrl);
    <fieldset class="centerMargin25 ui-widget ui-widget-content ui-corner-all padding15">
        <legend>Log in Form</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.Credentials.UserName)
                @Html.TextBoxFor(m => m.Credentials.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Credentials.Password)
                @Html.PasswordFor(m => m.Credentials.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.Credentials.RememberMe)
                @Html.LabelFor(m => m.Credentials.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <div>
            <input type="submit" value="@Resources.View_LogOn_Submit" class="submitButton centred" />
        </div>
    </fieldset>
    <p>
        @Html.ActionLink(@Resources.View_LogOn_RegisterIfNoAccount_1, "", "Register")@Resources.View_LogOn_RegisterIfNoAccount_2
    </p>
}
@if (Model.InvolvedCode != null)
{
    if (Model.InvolvedCode.Count > 0)
    { 
    <section>
        <span class="involvedCode">@Resources.Views_All_InvolvedCode</span>
        <div id="divInvolvedCode">
            @Html.Partial("_InvolvedCode", Model.InvolvedCode)
        </div>
    </section>
    }
}